package com.tensquare.article.service;

import com.tensquare.article.dao.CommentDao;
import com.tensquare.article.pojo.Comment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Macross
 * @Type CommentService.java
 * @Desc
 * @date 2019/12/18 19:48
 */
@Service
public class CommentService {

    @Autowired
    private CommentDao commentDao;

    public List<Comment> findByArticleId(String articleId) {
        return commentDao.findByArticleid(articleId);
    }
}
